package com.honey.mybatis.generator.criteria;

import com.honey.compilation.java.AbstractJavaCompilation;
import com.honey.compilation.java.Clazz;
import com.honey.compilation.java.InnerClass;
import com.honey.compilation.java.InnerClassDecoration;
import com.honey.compilation.java.JavaVisibility;
import com.honey.core.compiler.CompilationException;
import com.honey.core.types.FullyQualifiedJavaType;
import com.honey.mybatis.generator.AbstractClass;

public class CriterionClass  extends AbstractClass{

	@Override
	protected AbstractJavaCompilation getAbstractJavaCompilation()
			throws CompilationException {
		InnerClass answer = new InnerClass(
				CriteriaConstant.CRITERION_CLASS_NAME,
				new InnerClassDecoration(JavaVisibility.PRIVATE,false,true)
		);
		answer.addClassComment("动态sql语句,生成sql的条件语句的规则.");

		answer.setAutoAddGetterMethod(true);
		
		return answer;
	}
	
	@Override
	protected FullyQualifiedJavaType getType() {
		return null;
	}

}
